export const searchForm = [
	{value: '1', label: '托盘条码'},
]

export const itemForm = [
	{id: 'spuNo', name: '物料编号'},
	{id: 'spuName', name: '物料名称'},
	{id: 'planQty', name: '计划件数'},
	{id: 'bindQty', name: '已收件数'},
]

export const rules = {
	// 对name字段进行必填验证
	contNo: {
		// name 字段的校验规则
		rules:[
			{
				required: true,
				errorMessage: '请输入托盘条码',
			},
		],
		validateTrigger:'submit'
	},
	spuSize: {
		// name 字段的校验规则
		rules:[
			// 校验 name 不能为空
			{
				required: true,
				errorMessage: '',
			},
			// 对name字段进行长度验证
			{
				minLength: 1,
				maxLength: 6,
				errorMessage: '',
			}
		],
		validateTrigger:'submit'
	},
	actlQty: {
		// name 字段的校验规则
		rules:[
			// 校验 name 不能为空
			{
				required: true,
				errorMessage: '',
			},
		],
		validateTrigger:'submit'
	},
	spuWeight: {
		rules:[
			// 校验 name 不能为空
			{
				required: true,
				errorMessage: '',
			},
		],
		validateTrigger:'submit'
	}
}